﻿
namespace Marmat.Forms.Views
{
    namespace Grid
    {
        public class BeforeSortEventArgs : GridEventArgs
        {
            protected internal BeforeSortEventArgs(BaseGrid Grid) : base(Grid)
            {
            }


            /// <summary>
            /// 返回或设置新的排序字段
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public string Sort { get; set; }

            /// <summary>
            /// 逻辑型，如果设为True，则取消本次排序。
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public bool Cancel { get; set; } = false;
        }
    }
}